/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconInstallments: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M672 128a32 32 0 0 1 31.776 28.256L704 160h96a96 96 0 0 1 96 96v544a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96h96a32 32 0 0 1 63.776-3.744L384 160h256a32 32 0 0 1 32-32zM320 224H224a32 32 0 0 0-32 32v544a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32h-96a32 32 0 0 1-63.776 3.744L640 224h-256a32 32 0 0 1-63.776 3.744L320 224z m307.2 102.4a32 32 0 0 1 8.608 41.44l-2.208 3.36L576 448h64a32 32 0 0 1 3.744 63.776L640 512h-96v64h96a32 32 0 0 1 3.744 63.776L640 640h-96v96a32 32 0 0 1-63.776 3.744L480 736v-96h-96a32 32 0 0 1-3.744-63.776L384 576h96v-64h-96a32 32 0 0 1-3.744-63.776L384 448h64l-57.6-76.8a32 32 0 0 1 48.608-41.472l2.592 3.072 70.4 93.856 70.4-93.856a32 32 0 0 1 44.8-6.4z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconInstallments.defaultProps = {
  size: 18,
};

export default IconInstallments;
